<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
<#assign classNameCap = className?lower_case?cap_first>

package ${basepackage}.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="${className}: ${table.remarks}")
@TableName(value = "${table.sqlName}")
@Getter
@Setter
public class ${className} implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	<#list table.columns as column>
	@Schema(description="${column.remarks}")
    <#if column.columnName?lower_case == 'id'>
	@TableId(type = IdType.AUTO)
	<#else>
	@TableField(value = "`${column.sqlName}`")
    </#if>
	private ${column.simpleJavaType} ${column.columnNameLower};
	
    </#list>


}
